package com.clayecloud.common.mappers;

import com.clayecloud.common.entity.HouseUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author  ClayeLink
 * @date  2021/12/31 14:51
 */
@Mapper
public interface HouseUserMapper {
    int deleteByPrimaryKeyAndUserID(@Param("houseId") Integer houseId, @Param("userId") Integer userId);

    int deleteByPrimaryKey(@Param("houseId") Integer houseId);

    int insert(HouseUser record);

    int insertSelective(HouseUser record);

    HouseUser selectByPrimaryKey(@Param("houseId") Integer houseId, @Param("userId") Integer userId);

    int updateByPrimaryKeySelective(HouseUser record);

    int updateByPrimaryKey(HouseUser record);

    List<HouseUser> selectByUserID(Integer userId);

    List<HouseUser> selectByHouseID(Integer userId);
}